<template>
	<div class="m_r">
		<header class="top_bar">
			<a onclick="window.history.go(-1)" class="icon_back"></a>
			<h3 class="cartname">奖励明细</h3>
		</header>
		<div class="padding_top45">
			<div v-for="item in MemberAccountsList" class="border_bot_dcdcdc overflow_hidden pad10 background_fff">
				<div class="fl width70">
					<p class="" style="line-height: 25px;">{{item.Remark}}</p>
					<p style="line-height: 25px;">{{item.CreateDate}}</p>
				</div>
				<div class="float_right width30 text_align_rg" style="line-height: 50px;">
					{{item.Change}}
				</div>
			</div>
		</div>
	</div>
</template>
<script>
	import { Toast } from 'mint-ui';
	export default {
		data() {
			return {
				MemberAccountsList: [],
			}
		},
		mounted() {
			let _this = this
			_this.GetAccountLog()
		},
		methods: {
			GetAccountLog() {
				let _this = this;
				_this.$http.get('/client/MemberAccounts', null, localStorage.Authorization, res => {
					if(res.code===200){
						console.log('我的账户记录res', res)
						_this.MemberAccountsList = res.data.list
					}else if(res.code === 101) {
						localStorage.fromPath = _this.$route.fullPath
						_this.$router.push({
							path: '/wx/login'
						})
					}
				})
			},
		}
	}
</script>
<style>
	@import '../assets/css/reg.css';
</style>